<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<script type="text/javascript">
	$(function() {
		getGroundAreaData();
	})

	//获取建筑数量下的使用功能集合
	function getGroundAreaData() {
		var obj;
		var url = "house/GroundArea/getGrounAreaByBId";
		//pid:建筑数量id 预留
		var bid = $("#buildingNumId").val();
		if (bid == null || bid == "") {
			return false;
		}
		$.getJSON(url, {
			buildingNumId : bid
		}, function(data, status) {
			if (status == "success") {
				var $t,
					v,
					a;
				if (data != null) {
					var num = [ 1, 2, 3, 4 ];
					var areaArr = [ data.firstFloorAreaInfo2, data.normFloorAreaInfo2, data.topFloorAreaInfo2, data.heterotypeFloorAreaInfo2 ];
					//添加模板div并赋值
					for (var i = 0; i < areaArr.length; i++) {
						//添加模板div
						for (var j = 0; j < areaArr[i].length; j++) {
							addDiv2(obj, num[i]);
						}
						//模板div赋值
						$t = $("#buildingAreaTop1 #area_" + (i + 1) + " table");
						a = areaArr[i];
						for (var j = 0; j < a.length; j++) {
							v = $t[j];
							$(v).find("input[name='scope']").val(a[j].scope);
							$(v).find("input[name='householdType']").val(a[j].householdType);
							$(v).find("input[name='monolayerNum']").val(a[j].monolayerNum);
							$(v).find("input[name='area']").val(returnFloat(a[j].area));
							$(v).find("input[name='id']").val(a[j].id);
						}
					}
					//外键数据赋值
					$("#buildingAreaTop1 #area_1 input[name='fkBuildingArea']").val(data.firstFloorAreaInfo);
					$("#buildingAreaTop1 #area_2 input[name='fkBuildingArea']").val(data.normFloorAreaInfo);
					$("#buildingAreaTop1 #area_3 input[name='fkBuildingArea']").val(data.topFloorAreaInfo);
					$("#buildingAreaTop1 #area_4 input[name='fkBuildingArea']").val(data.heterotypeFloorAreaInfo);
					//基本数据赋值
					$("#buildingAreaTop1 input[name='buildingAreaSum']").val(returnFloat(data.buildingAreaSum));
					$("#buildingAreaTop1 input[name='chargeArea']").val(returnFloat(data.chargeArea));
					$("#buildingAreaTop1 input[name='publicArea']").val(returnFloat(data.publicArea));
					$("#buildingAreaTop1 input[name='stairsArea']").val(returnFloat(data.stairsArea));
					$("#buildingAreaTop1 input[name='lobbyArea']").val(returnFloat(data.lobbyArea));
					$("#buildingAreaTop1 input[name='platformArea']").val(returnFloat(data.platformArea));
					$("#buildingAreaTop1 input[name='corridorArea']").val(returnFloat(data.corridorArea));
					$("#buildingAreaTop1 input[name='firstFloorArea']").val(returnFloat(data.firstFloorArea));
					$("#buildingAreaTop1 input[name='normFloorArea']").val(returnFloat(data.normFloorArea));
					$("#buildingAreaTop1 input[name='topFloorArea']").val(returnFloat(data.topFloorArea));
					$("#buildingAreaTop1 input[name='heterotypeFloorArea']").val(returnFloat(data.heterotypeFloorArea));
					$("#buildingAreaTop1 input[name='roofingArea']").val(returnFloat(data.roofingArea));
					$("#buildingAreaTop1 input[name='asylumFloorArea']").val(returnFloat(data.asylumFloorArea));
					$("#buildingAreaTop1 input[name='outerWallAreaSum']").val(returnFloat(data.outerWallAreaSum));
					$("#buildingAreaTop1 input[name='outerWallArea']").val(returnFloat(data.outerWallArea));
					$("#buildingAreaTop1 input[name='outerWindowArea']").val(returnFloat(data.outerWindowArea));
					$("#buildingAreaTop1 #entityId_btId").val(data.id);
					//设置输入框为只读
					$("#buildingAreaTop1").find("input,textarea").attr("readonly", true);
					//隐藏按钮
					$("#buildingAreaTop1 #btn_div2").show();
					$("#buildingAreaTop1 #btn_div1").hide();

					$("#buildingAreaTop1 .icon-fullscreen").hide();
					$("#buildingAreaTop1 .addbtn").attr("disabled", true);
				}
			}
		});
	}
</script>
<form class="cmxform" id="buildingAreaTop1" method="post"
	action="house/GroundArea/add" onsubmit="return false;">
	<div style="padding:0px">
		<!-- 地上面积start -->
		<div class="panel panel-default">
			<div class="panel-heading">
				<h5 class="panel-title">基本信息</h5>
			</div>
			<div class="panel-body">
				<p class="style_border_bottom">
					<span class="style_btn">总建筑面积</span> <span class="style_input"><input
						name="buildingAreaSum" /> ㎡</span>
				</p>
				<div class="style_input">
					<p>
						<span class="style_btn">收费面积</span> <span class="style_input"><input
							name="chargeArea" /> ㎡</span>
					</p>
					<p>
						<span class="style_btn">公共面积</span> <span class="style_input"><input
							name="publicArea" /> ㎡</span>
					</p>
					<div style="border:1px solid gray;padding:10px;margin:10px 0px;">
						<table class="mytable">
							<tr>
								<td width="73" class="td-right"><span>楼梯面积</span></td>
								<td width="320"><input id="" name="stairsArea" /> ㎡</td>
								<td width="73" class="td-right"><span>大堂面积</span></td>
								<td><input id="" name="lobbyArea" /> ㎡</td>
							</tr>
							<tr>
								<td width="73" class="td-right"><span>平台面积</span></td>
								<td><input id="" name="platformArea" /> ㎡</td>
								<td width="73" class="td-right"><span>楼道面积</span></td>
								<td><input id="" name="corridorArea" /> ㎡</td>
							</tr>
						</table>
					</div>
				</div>
				<!-- 首层面积start -->
				<div id="area_1">
					<p class="style_border_bottom">
						<span class="style_btn">首层面积</span> <span class="style_input"><input
							id="" name="firstFloorArea" /> ㎡&nbsp;&nbsp;&nbsp;&nbsp; <a
							class="btn btn-danger radius a_font addbtn"
							onclick="addDiv2(this,'1')"> 添加</a> </span>
					</p>
					<input type="hidden" name="fkBuildingArea" id="entityId_fk1"/>
					<!-- 对应的外键值-->
				</div>
				<!-- 首层面积end -->

				<!-- 标准层面积start -->
				<div id="area_2">
					<p class="style_border_bottom">
						<span class="style_btn">标准层面积</span> <span class="style_input"><input
							id="" name="normFloorArea" /> ㎡&nbsp;&nbsp;&nbsp;&nbsp; <a
							class="btn btn-danger radius a_font addbtn"
							onclick="addDiv2(this,'2')"> 添加</a> </span>
					</p>
					<input type="hidden" name="fkBuildingArea" id="entityId_fk2"/>
					<!-- 对应的外键值-->

				</div>
				<!-- 标准层面积end -->

				<!-- 顶层面积start -->
				<div id="area_3">
					<p class="style_border_bottom">
						<span class="style_btn">顶层面积</span> <span class="style_input"><input
							id="" name="topFloorArea" /> ㎡&nbsp;&nbsp;&nbsp;&nbsp; <a
							class="btn btn-danger radius a_font addbtn"
							onclick="addDiv2(this,'3')"> 添加</a> </span>
					</p>
					<input type="hidden" name="fkBuildingArea" id="entityId_fk3"/>
					<!-- 对应的外键值-->

				</div>
				<!-- 顶层面积end -->

				<!-- 异型层面积start -->
				<div id="area_4">
					<p class="style_border_bottom">
						<span class="style_btn">异型层面积</span> <span class="style_input"><input
							id="" name="heterotypeFloorArea" /> ㎡&nbsp;&nbsp;&nbsp;&nbsp; <a
							class="btn btn-danger radius a_font addbtn"
							onclick="addDiv2(this,'4')"> 添加</a> </span>
					</p>
					<input type="hidden" name="fkBuildingArea" id="entityId_fk4"/>
					<!-- 对应的外键值-->

				</div>
				<!-- 异型层面积end -->

				<!-- 屋面面积start -->
				<div id="area_5">
					<p class="style_border_bottom">
						<span class="style_btn">屋面面积</span> <span class="style_input">
							<input id="" name="roofingArea" /> ㎡
						</span>
					</p>
					<p class="style_border_bottom">
						<span class="style_btn">避难层面积</span> <span class="style_input">
							<input id="" name="asylumFloorArea" /> ㎡
						</span>
					</p>
				</div>
				<!-- 屋面层面积end -->
				<!-- 外墙面积start -->
				<div id="area_6">
					<p class="style_border_bottom">
						<span class="style_btn">外墙面积</span> <span class="style_input">
							<input id="" name="outerWallAreaSum" /> ㎡
						</span>
					</p>
					<div style="padding:10px;margin:10px;">
						<table id="waiqiang" cellpadding="10" cellspacing="5"
							class="mytable">
							<tr>
								<td width="73" class="td-right"><span>墙体面积</span></td>
								<td><input id="" name="outerWallArea" /> ㎡</td>
								<td width="73" class="td-right"><span>外窗面积</span></td>
								<td><input id="" name="outerWindowArea" /> ㎡</td>
							</tr>
						</table>
					</div>
				</div>
				<!-- 外墙面积end -->
			</div>
		</div>
		<input type="hidden" id="entityId_btId" name="id" />
		<!-- 地上面积id -->
		<!-- 地上面积end -->
		<div style="width:100%;text-align:center; padding-top:20px">
			<div id="btn_div1">
				<button class="btn btn-danger radius my-btn"
					onclick="saveGroundAreas(0)" type="button">提交</button>
				<button class="btn btn-danger radius my-btn"
					onclick="saveGroundAreas(1)" type="button">保 存</button>
				<a class="btn btn-default radius" onClick="resetForms('buildingAreaTop1');">
					重置 </a> <br />
			</div>
			<div id="btn_div2" style="display:none;">
				<shiro:hasPermission name="permission:edit">
					<button id="modifyBtn" type="button"
						class="btn btn-danger radius my-btn" onclick="saveGroundAreas(3)">启用编辑</button>
					<button class="btn btn-danger radius my-btn hidbtn"
						onclick="saveGroundAreas(2)" type="button">保存修改</button>
					<button class="btn btn-default radius hidbtn"
						onClick="resetForms('buildingAreaTop1');">重置</button>
				</shiro:hasPermission>
			</div>
		</div>

	</div>
</form>

<script type="text/javascript">
	$(function() {
		$(".a_font").css("color", "#fff");
		mySubmit("buildingAreaTop1", initAreaTop, successAreaTop);
	});

	function addDiv2(obj, i) {
		var node;
		if (i == "1" || i == "3") {
			node = $("#sc").html();
		} else {
			node = $("#sc2").html();
		}
		var oTest = $("#area_" + i);
		oTest.append(node);
	}
	//存储将要删除的id，传到后台删除
	var delFloorAreaIds = new Array();
	function delTrDiv(obj) {
		var id = $(obj).parent().parent().parent().parent().find("input[name='id']").val();
		delFloorAreaIds.push(id);
		$(obj).parent().parent().parent().parent().parent().remove();
		layer.msg("点击保存后，将彻底删除该条数据！");
	}
	/* function delTrDiv(obj) {
		var id = $(obj).parent().parent().parent().parent().find("input[name='id']").val();
		layer.confirm('确定删除该条信息吗？', {
			btn : [ '确定', '取消' ] //按钮
		}, function() {
			//点击确定时，删除该条数据
			if (id== undefined || id == "") {
				$(obj).parent().parent().parent().parent().parent().remove();
				layer.msg("删除成功");
			} else {
				if(id!=null && id!=undefined && id != ""){
					$.getJSON("house/GroundArea/delFloorArea", {id:id}, function(data, status) {
						if (status == "success") {
							layer.msg("删除成功！");
							$(obj).parent().parent().parent().parent().parent().remove();
						}
					});
				}
			}
		}, function() {
			layer.close();
		});
	} */

	var optGroundArea;
	//optFloorNum操作字段，0：临时保存；1：新增；2：修改
	function saveGroundAreas(val) {
		optGroundArea = val;
		if (val == 3) {
			//解除锁定状态
			var index = layer.confirm('确定开启编辑状态？', {
				offset : '20%',
				shade : 0
			}, function() {
				//去除只读开启按钮编辑
				$("#buildingAreaTop1").find("input,textarea").attr("readonly", false);
				$("#buildingAreaTop1 #modifyBtn").hide();
				$("#buildingAreaTop1 .hidbtn").addClass("showbtn");
				$("#buildingAreaTop1 .icon-fullscreen").show();
				$("#buildingAreaTop1 .addbtn").attr("disabled", false);
				layer.close(index);
			});
		} else {
			
			$("#buildingAreaTop1").submit();
		}
	}
	var bi;
	//封装表单数据为json
	function initAreaTop() {
		bi = layer.load(2);
		//封装基本数据
		var buildingAreaSum = $("input[name='buildingAreaSum']").val();
		var chargeArea = $("input[name='chargeArea']").val();
		var publicArea = $("input[name='publicArea']").val();
		var stairsArea = $("input[name='stairsArea']").val();
		var lobbyArea = $("input[name='lobbyArea']").val();
		var platformArea = $("input[name='platformArea']").val();
		var corridorArea = $("input[name='corridorArea']").val();
		var firstFloorArea = $("input[name='firstFloorArea']").val();
		var normFloorArea = $("input[name='normFloorArea']").val();
		var topFloorArea = $("input[name='topFloorArea']").val();
		var heterotypeFloorArea = $("input[name='heterotypeFloorArea']").val();
		var roofingArea = $("input[name='roofingArea']").val();
		var asylumFloorArea = $("input[name='asylumFloorArea']").val();
		var outerWallAreaSum = $("input[name='outerWallAreaSum']").val();
		var outerWallArea = $("input[name='outerWallArea']").val();
		var outerWindowArea = $("input[name='outerWindowArea']").val();
		var btId = $("#entityId_btId").val();
		//封装首层面积数据
		var $t = $("#area_1 table");
		var firstFloor = new Array();
		var fkfirst = $("#buildingAreaTop1 #area_1 input[name='fkBuildingArea']").val();
		for (var i = 0; i < $t.length; i++) {
			var v = $t[i];
			var householdType = $(v).find("input[name='householdType']").val();
			var monolayerNum = $(v).find("input[name='monolayerNum']").val();
			var area = $(v).find("input[name='area']").val();
			var id = $(v).find("input[name='id']").val();
			if (!testNum(monolayerNum)) {
				layer.msg("首层面积中第" + (i + 1) + "行单层数量请输入数值");
				$(v).find("input[name='monolayerNum']")[0].focus();
				layer.close(bi);
				return null;
			} else if (!testNum(area)) {
				layer.msg("首层面积中第" + (i + 1) + "行面积请输入数值");
				$(v).find("input[name='area']")[0].focus();
				layer.close(bi);
				return null;
			}
			firstFloor.push({
				householdType : householdType,
				area : area,
				monolayerNum : monolayerNum,
				id : id,
				fkBuildingArea : fkfirst
			});

		}
		//封装标准层数据
		var $t = $("#area_2 table");
		var fknorm = $("#buildingAreaTop1 #area_2 input[name='fkBuildingArea']").val();
		var normFloor = new Array();
		for (var i = 0; i < $t.length; i++) {
			var v = $t[i];
			var householdType = $(v).find("input[name='householdType']").val();
			var monolayerNum = $(v).find("input[name='monolayerNum']").val();
			var area = $(v).find("input[name='area']").val();
			var scope = $(v).find("input[name='scope']").val();
			var id = $(v).find("input[name='id']").val();
			if (!testNum(monolayerNum)) {
				layer.msg("标准层面积中第" + (i + 1) + "行单层数量请输入数值");
				$(v).find("input[name='monolayerNum']")[0].focus();
				layer.close(bi);
				return null;
			} else if (!testNum(area)) {
				layer.msg("标准层面积中第" + (i + 1) + "行面积请输入数值");
				$(v).find("input[name='area']")[0].focus();
				layer.close(bi);
				return null;
			}
			normFloor.push({
				householdType : householdType,
				area : area,
				monolayerNum : monolayerNum,
				scope : scope,
				id : id,
				fkBuildingArea : fknorm
			});

		}

		//封装顶层数据
		var $t = $("#area_3 table");
		var fktop = $("#buildingAreaTop1 #area_3 input[name='fkBuildingArea']").val();
		var topFloor = new Array();
		for (var i = 0; i < $t.length; i++) {
			var v = $t[i];
			var householdType = $(v).find("input[name='householdType']").val();
			var monolayerNum = $(v).find("input[name='monolayerNum']").val();
			var area = $(v).find("input[name='area']").val();
			var id = $(v).find("input[name='id']").val();
			if (!testNum(monolayerNum)) {
				layer.msg("顶层面积中第" + (i + 1) + "行单层数量请输入数值");
				$(v).find("input[name='monolayerNum']")[0].focus();
				layer.close(bi);
				return null;
			} else if (!testNum(area)) {
				layer.msg("顶层面积中第" + (i + 1) + "行面积请输入数值");
				$(v).find("input[name='area']")[0].focus();
				layer.close(bi);
				return null;
			}
			topFloor.push({
				householdType : householdType,
				area : area,
				monolayerNum : monolayerNum,
				id : id,
				fkBuildingArea : fktop
			});
		}

		//封装异型层数据
		var $t = $("#area_4 table");
		var fksteretype = $("#buildingAreaTop1 #area_4 input[name='fkBuildingArea']").val();
		var heterotypeFloor = new Array();
		for (var i = 0; i < $t.length; i++) {
			var v = $t[i];
			var householdType = $(v).find("input[name='householdType']").val();
			var monolayerNum = $(v).find("input[name='monolayerNum']").val();
			var area = $(v).find("input[name='area']").val();
			var scope = $(v).find("input[name='scope']").val();
			var id = $(v).find("input[name='id']").val();
			if (!testNum(monolayerNum)) {
				layer.msg("异型层面积中第" + (i + 1) + "行单层数量请输入数值");
				$(v).find("input[name='monolayerNum']")[0].focus();
				layer.close(bi);
				return null;
			} else if (!testNum(area)) {
				layer.msg("异型层面积中第" + (i + 1) + "行面积请输入数值");
				$(v).find("input[name='area']")[0].focus();
				layer.close(bi);
				return null;
			}
			heterotypeFloor.push({
				householdType : householdType,
				area : area,
				monolayerNum : monolayerNum,
				scope : scope,
				id : id,
				fkBuildingArea : fksteretype
			});
		}
		if (!testNum(buildingAreaSum)) {
			layer.msg("总建筑面积请输入数值");
			$("input[name='buildingAreaSum']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(chargeArea)) {
			layer.msg("收费面积请输入数值");
			$("input[name='chargeArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(publicArea)) {
			layer.msg("公共面积请输入数值");
			$("input[name='publicArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(stairsArea)) {
			layer.msg("楼梯面积请输入数值");
			$("input[name='stairsArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(lobbyArea)) {
			layer.msg("大堂面积请输入数值");
			$("input[name='lobbyArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(platformArea)) {
			layer.msg("平台面积请输入数值");
			$("input[name='platformArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(corridorArea)) {
			layer.msg("楼道面积请输入数值");
			$("input[name='corridorArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(firstFloorArea)) {
			layer.msg("首层面积请输入数值");
			$("input[name='firstFloorArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(normFloorArea)) {
			layer.msg("标准层面积请输入数值");
			$("input[name='normFloorArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(topFloorArea)) {
			layer.msg("顶层面积请输入数值");
			$("input[name='topFloorArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(heterotypeFloorArea)) {
			layer.msg("异型层面积请输入数值");
			$("input[name='heterotypeFloorArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(roofingArea)) {
			layer.msg("屋面面积请输入数值");
			$("input[name='roofingArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(asylumFloorArea)) {
			layer.msg("避难层面积请输入数值");
			$("input[name='asylumFloorArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(outerWallAreaSum)) {
			layer.msg("外墙总面积请输入数值");
			$("input[name='outerWallAreaSum']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(outerWallArea)) {
			layer.msg("外墙面积请输入数值");
			$("input[name='outerWallArea']").focus();
			layer.close(bi);
			return null;
		} else if (!testNum(outerWindowArea)) {
			layer.msg("外窗面积请输入数值");
			$("input[name='outerWindowArea']").focus();
			layer.close(bi);
			return null;
		} 
		//物业录的数据尚不完善，暂时先注释掉,后期数据完善后再添加该功能，切记勿删！！！！！！！！
		/* else if (buildingAreaSum<(parseFloat(chargeArea)+parseFloat(publicArea))) {
			layer.msg("总建筑面积应不小于收费面积、公共面积之和");
			layer.close(bi);
			return null;
		} */
		else {
			return {
				fkBuildingAreaInfo : '${requestScope.buildingNum.buildingArea }',
				firstFloorAreaInfo2 : firstFloor,
				normFloorAreaInfo2 : normFloor,
				topFloorAreaInfo2 : topFloor,
				heterotypeFloorAreaInfo2 : heterotypeFloor,
				buildingAreaSum : buildingAreaSum,
				chargeArea : chargeArea,
				publicArea : publicArea,
				stairsArea : stairsArea,
				lobbyArea : lobbyArea,
				platformArea : platformArea,
				corridorArea : corridorArea,
				firstFloorArea : firstFloorArea,
				normFloorArea : normFloorArea,
				topFloorArea : topFloorArea,
				heterotypeFloorArea : heterotypeFloorArea,
				roofingArea : roofingArea,
				asylumFloorArea : asylumFloorArea,
				outerWallAreaSum : outerWallAreaSum,
				outerWallArea : outerWallArea,
				outerWindowArea : outerWindowArea,
				opt : optGroundArea,
				id : btId,
				delFloorAreaIds:delFloorAreaIds
			};
		}

	}

	//成功后调用方法
	function successAreaTop(responseText) {
		if (responseText.success) {
			/* getGroundAreaData();
			$("#buildingAreaTop1 #modifyBtn").show();
			$("#buildingAreaTop1  #area_1>div").remove();
			$("#buildingAreaTop1  #area_2>div").remove();
			$("#buildingAreaTop1  #area_3>div").remove();
			$("#buildingAreaTop1  #area_4>div").remove();
			$("#buildingAreaTop1 .hidbtn").removeClass("showbtn"); */
			layer.alert("保存成功！", {
					offset:'20%',
					shade:0.1
				}, function() {
				parent.tabShow=0;
				parent.tabTypeShow=0;
				location.reload();
			});
			layer.close(bi);
		} else {
			alert('保存失败！');
			layer.closeAll();
		}
	}
</script>

<!-- 模板start -->
<div id="sc" style="display:none;">
	<div class="style_border_tem">
		<table cellpadding="10" cellspacing="5" class="mytable">
			<tr>
				<td width="73" class="td-right"><span>户型</span><input type="hidden" name="id" id="entityId_uId1"/></td>
				<td><input id="" name="householdType" /></td>
				<td colspan="2" valign="top" align="right"><a
					href="javascript:void(0)" onclick="delTrDiv(this)"> <i
						class="icon-fullscreen"></i>
				</a></td>
			</tr>
			<tr>
				<td width="73" class="td-right"><span>单层数量</span></td>
				<td width="320"><input id="" name="monolayerNum" /></td>
				<td width="73" class="td-right"><span>面积</span></td>
				<td><input id="" name="area" /> ㎡</td>
			</tr>
		</table>
	</div>
</div>

<div id="sc2" style="display:none;">
	<div class="style_border_tem">
		<table cellpadding="10" cellspacing="5" class="mytable">
			<tr>
				<td width="73" class="td-right"><span>范围</span></td>
				<td width="320"><input id="" name="scope" /> <input
					type="hidden" name="id" id="entityId_uId"/></td>
				<td width="73" class="td-right"><span>户型</span></td>
				<td><input id="" name="householdType" /></td>
				<td valign="top" align="right"><a href="javascript:void(0)"
					onclick="delTrDiv(this)"> <i class="icon-fullscreen"></i>
				</a></td>
			</tr>
			<tr>
				<td width="73" class="td-right"><span>单层数量</span></td>
				<td><input id="" name="monolayerNum" /></td>
				<td width="73" class="td-right"><span>面积</span></td>
				<td colspan="2"><input id="" name="area" /> ㎡</td>
			</tr>
		</table>
	</div>
</div>
<!-- 模板end -->

